package com.company.structural.decorator_pattern.clinet;

import com.company.structural.decorator_pattern.component.Component;
import com.company.structural.decorator_pattern.concrete_component.Window;
import com.company.structural.decorator_pattern.concrete_decotatot.BlackBorderDecorator;
import com.company.structural.decorator_pattern.concrete_decotatot.ScrollBarDecorator;

/**
 * @ClassName Client
 * @Author tiezheng.han
 * @Date 2020/8/31 16:39
 **/
public class Client {
    public static void main(String[] args) {
        Component component,componentScrollBar,componentBlackBorder;
        component = new Window();
        componentScrollBar = new ScrollBarDecorator(component);
        componentBlackBorder = new BlackBorderDecorator(componentScrollBar);
        componentBlackBorder.display();
    }
}
